









<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so search-form">
            <input class="layui-input"  autocomplete="off" placeholder="开始日" name="date1"  value="{:input('date1')}" id="start">
            <input class="layui-input"  autocomplete="off" placeholder="截止日" name="date2"  value="{:input('date2')}" id="end">
            <input type="text" name="search_data"  placeholder="申诉用户名|UID" autocomplete="off" value="{:input('search_data')}"  class="layui-input">
            <div class="layui-input-inline">
                <select name="state">
                    <option value="" >全部状态</option>
                    <option value="1" {notempty name="param['state']"}{if condition="$param['state'] eq 1"} selected="selected" {/if}{/notempty} >待处理</option>
                    <option value="2" {notempty name="param['state']"}{if condition="$param['state'] eq 2"} selected="selected" {/if}{/notempty} >已处理</option>
                    <!--<option value="3" {notempty name="param['state']"}{if condition="$param['state'] eq 3"} selected="selected" {/if}{/notempty} >已处理(失败)</option>-->
                </select>
            </div>

            <button class="layui-btn"  id="search"  url="{:url('trade_order_appeal_list')}"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>


        </form>
    </div>
    <xblock>
        <!--<button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>-->
        <!--<button class="layui-btn" onclick="x_admin_show('添加用户','./member-add.html',600,400)"><i class="layui-icon"></i>添加</button>-->

        <!--<ob_link> <button class="layui-btn export" url="{:url('exportOtcOrderList')}"> 导 出</button></ob_link>-->
        <span class="x-right" style="line-height:40px;margin-right:10px;">共有数据：{$list.count} 条</span>
    </xblock>
    <table class="layui-table x-admin">
        <thead>
        <tr>
            <th>
                序号
            </th>
            <th>店铺信息</th>
            <th>买家信息</th>
            <th>交易订单信息</th>
            <th>申诉信息</th>
            <th>申诉提交图片</th>
            <th>状态</th>
            <th>操作</th>
        </thead>
        {notempty name='list.list'}
        <tbody>
        {volist name='list.list' id='vo' key="k"}
        <tr>
            <td class="">
                {$k}
            </td>
            {if condition="$vo.otcorder.otc_type eq 1"}
            <td class="col-md-2 ">
                <div> <label>UID:</label><span>{$vo.otcorder.user_id}</span></div>
                <div><label>用户名:</label><span>{$vo.otcorder.member.username}</span>{if condition ="$vo.otcorder.member.is_company eq 1"}<span style="color: #f56c6c">(公司账户)</span>{/if}</div>
                <div> <label>手机号码:</label><span>{$vo.otcorder.member.mobile}</span></div>
                <div>  <label>店铺名称:</label><span>{$vo.otcorder.shop.shop_name}</span></div>
                <div>  <label>付款方式:</label><span>{$vo.otcorder.trade.pay_text}</span></div>
            </td>

            {else/}
            <td class="col-md-2 ">
                <div> <label>UID:</label><span>{$vo.otcorder.uid}</span></div>
                <div><label>用户名:</label><span>{$vo.otcorder.user.username}</span>{if condition ="$vo.otcorder.user.is_company eq 1"}<span style="color: #f56c6c">(公司账户)</span>{/if}</div>
                <div> <label>手机号码:</label><span>{$vo.otcorder.user.mobile}</span></div>
                <div>  <label>店铺名称:</label><span>{$vo.otcorder.shop.shop_name}</span></div>
                <div>  <label>收款方式:</label><span>{$vo.otcorder.trade.pay_text}</span></div>
            </td>

            {/if}

            {if condition="$vo.otcorder.otc_type eq 2"}
            <td class="col-md-2 ">
                <div> <label>UID:</label><span>{$vo.otcorder.user_id}</span></div>
                <div><label>用户名:</label><span>{$vo.otcorder.member.username}</span>{if condition ="$vo.otcorder.member.is_company eq 1"}<span style="color: #f56c6c">(公司账户)</span>{/if}</div>
                <div> <label>手机号码:</label><span>{$vo.otcorder.member.mobile}</span></div>
                <div><label>是否赌王:</label><span>{if condition ="$vo.otcorder.member.is_king eq 1"}是{else/}否{/if}</span></div>

            </td>

            {else/}
            <td class="col-md-2 ">
                <div> <label>UID:</label><span>{$vo.otcorder.uid}</span></div>
                <div><label>用户名:</label><span>{$vo.otcorder.user.username}</span>{if condition ="$vo.otcorder.user.is_company eq 1"}<span style="color: #f56c6c">(公司账户)</span>{/if}</div>
                <div> <label>手机号码:</label><span>{$vo.otcorder.user.mobile}</span></div>
                <div><label>是否赌王:</label><span>{if condition ="$vo.otcorder.user.is_king eq 1"}是{else/}否{/if}</span></div>
            </td>

            {/if}

            <td class="col-md-2 ">
                <div><label>币种:</label><span>{$vo.otcorder.wallet->name}</span></div>
                <div> <label>交易数量:</label><span>{$vo.otcorder.number}</span></div>
                <div>  <label>交易单价:</label><span>{$vo.otcorder.price}</span></div>
                <div>  <label>交易金额:</label><span>{$vo.otcorder.total}</span></div>
                <div>  <label>交易时间:</label><span>{$vo.otcorder.create_time}</span></div>
            </td>
            <td class="col-md-3 ">
                <div> <label>申诉内容:</label><span>{$vo.content}</span></div>
                {if condition="$vo['state'] eq 2"} <div> <label>处理类型：</label><span>{$vo.type_text}</span></div><div> <label>处理时间：</label><span>{$vo.update_time|date='Y-m-d H:i:s' ,###}</span></div>{/if}
                <div>  <label>申诉时间:</label><span>{$vo.create_time}</span></div>
            </td>
            <td class="col-md-2 " >
                {if condition="$vo['cover_id'] gt 0"}
               <a href="{$vo.cover_id|get_picture_url}" target="_blank"><img class="admin-list-img-size" src="{$vo.cover_id|get_picture_url}"/></a>
                {else/}
                ----------
                {/if}

            </td>
            <td class="">{$vo.state_html}</td>

            <td class="td-manage col-md-2 ">

                <div style="margin-bottom: 5px;"><label></label><span>   <ob_link><a title="查看详情" style="color: #0a8cd2"  href="{:url('trade_order_detail', array('id' => $vo['order_id']))}" >
                    查看详情
                </a></ob_link></span></div>

                {if condition="$vo['state'] eq 1   "}

                <div style="margin-bottom: 5px;"><label></label><span>   <ob_link><a title="申诉处理" style="color: #0a8cd2"  href="{:url('trade_order_feedback', array('feedback_id'=>$vo['id']))}" >
                    申诉处理
                </a></ob_link></span></div>
                <div style="margin-bottom: 5px;"><label></label><span>   <ob_link><a title="查看详情" style="color: #0a8cd2"  href="{:url('trade_order_detail', array('id' => $vo['order_id']))}" >
                    查看详情
                </a></ob_link></span></div>

                {/if}

            </td>

        </tr>
        {/volist}
        {else/}
        <tbody><tr class="odd"><td colspan="12" class="" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
        {/notempty}

        </tbody>
    </table>
    <div class="page">
        {notempty name='list.list'}   {$list.list->render()}{/notempty}
    </div>

</div>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;
        layer=layui.layer;
        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });








    //导出功能
    $(".export").click(function(){

        window.location.href = searchFormUrl($(".export"));
    });
</script>

</body>

</html>









